package com.whxy02.tolearn.app.beans;

//import javax.persistence.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 模拟考试（暂定）历史表
 */


//@Entity
//@Table(name="tb_history")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_history")
public class History {
//    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(value = "history_id",type = IdType.AUTO)
    private Integer historyId;
    private String title="模拟考试";               //总标题
    private Integer tagsId=1;                //标签
    private String result="0";              //做题结果
    private boolean mark=false;               //是否合格
    private Date createTime=new Date();                  //做题日期
    private Integer userId=1;            //用户
    private Integer examId=1;            //题目的id
    private Integer subjectId=1;             //科目
    private String level="普通";               //难度

    @TableField(exist = false)
    private String subject;
    @TableField(exist = false)
    private String tags;
}
